package com.infusionesuci2Pro;
import com.google.analytics.tracking.android.EasyTracker;
import com.google.analytics.tracking.android.GoogleAnalytics;
import com.google.analytics.tracking.android.MapBuilder;
import com.infusionesuci2Pro.R;

import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.app.Activity;
import android.content.Intent;

public class Ayuda extends Activity {

	public ImageView botonForm;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ayuda);
		
		//Analytics
		GoogleAnalytics.getInstance(this).getTracker("UA-45986553-2");
		
		this.botonForm = (ImageView) findViewById(R.id.formularioApp);	
		}
	
	public void ayuda(View view){
		// ---Analytics---
		EasyTracker easyTracker = EasyTracker.getInstance(this);
		easyTracker.send(MapBuilder.createEvent("ui_action", // Event category (required)
				"suportAndNotification_press", // Event action (required)
				"btn_soporte", // Event label
				null) // Event value
				.build());
		// ----Fin Analytics-----
		Intent intent = new Intent(this,Notificacion.class);
		intent.putExtra("url", this.getString(R.string.urlAtencionAlCliente));
		startActivity(intent);
	}
	
	public void quitar(View view){
		this.finish();
	}
	
	@Override
	  public void onStart() {
	    super.onStart();
	    EasyTracker.getInstance(this).activityStart(this); 
	  }
	 
	 @Override
	  public void onStop() {
	    super.onStop();
	    EasyTracker.getInstance(this).activityStop(this); 
	  }
}
